package com.rayboo.example.design.pattern.factory.normal;

/**
 * 简单工厂
 * http://c.biancheng.net/view/8385.html
 */
public class Main {

    public static void main(String[] args) {

        SuvCarFactory factory = new SuvCarFactory();

        SuvCar redSuv = factory.create(SuvCarFactory.RED);
        redSuv.run();

        SuvCar greenSuv = factory.create(SuvCarFactory.GREEN);
        greenSuv.run();

        SuvCar blueSuv = factory.create(SuvCarFactory.BLUE);
        blueSuv.run();
    }
}
